package com.happy.mapper;

import com.happy.model.entity.CardReservation;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

@Mapper
public interface CardReservationMapper {

    void insertCardReservations(CardReservation cardReservations);

    @Delete("delete from tb_card_reservation where card_id = #{id}")
    void deleteCardReservations(Integer id);

    @Select("select * from tb_card_reservation where card_id = #{id}")
    CardReservation getReservation(Integer id);
}
